/**
 * 防盗门
 *
 * @author zhu
 * @date 2024-03-12
 */
public class SecurityDoor extends Door {
    @Override
    public void openDoor() {
        security();
    }

    @Override
    public void closeDoor() {
        System.out.println("防盗门被关上了");
    }

    /**
     * 防盗功能的实现
     */
    public void security(){
        if (lockStatus == "已上锁"){
            System.out.println("防盗铃响了····");
        }else {
            System.out.println("防盗门被打开了");
        }
    }
}
